import request from '@/utils/request'

// 查询行为告警列表
export function listBehaviorwarn(query) {
  return request({
    url: '/ruoyi-aimp/behaviorwarn/list',
    method: 'get',
    params: query
  })
}

// 查询行为告警详细
export function getBehaviorwarn(behaviorwarnId) {
  return request({
    url: '/ruoyi-aimp/behaviorwarn/' + behaviorwarnId,
    method: 'get'
  })
}

// 新增行为告警
export function addBehaviorwarn(data) {
  return request({
    url: '/ruoyi-aimp/behaviorwarn',
    method: 'post',
    data: data
  })
}

// 修改行为告警
export function updateBehaviorwarn(data) {
  return request({
    url: '/ruoyi-aimp/behaviorwarn',
    method: 'put',
    data: data
  })
}

// 删除行为告警
export function delBehaviorwarn(behaviorwarnId) {
  return request({
    url: '/ruoyi-aimp/behaviorwarn/' + behaviorwarnId,
    method: 'delete'
  })
}
